﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Knlght.Domain
{
    /// <summary>
    /// 分页请求对象
    /// </summary>
    public class PagingRequest<T>
    {
        public PagingRequest(int pageIndex, int pageSize, QueryRequest<T> query = null)
        {
            this.PageIndex = pageIndex;
            this.PageSize = pageSize;
            this.Query = query;
        }

        public PagingRequest() { }

        /// <summary>
        /// 当前的页号
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 每页显示的数量
        /// </summary>
        public int PageSize { get; set; }
        /// <summary>
        /// 附加查询条件
        /// </summary>
        public QueryRequest<T> Query { get; set; }

    
    }
}
